import {HTTP} from "../utils/https.js"

class likeModel extends HTTP {
  like(behavior, artID, category, sCallback) {
    let url = behavior == 'like'?'like':'like/cancel'
    this.request({
      url: url,
      method:'post',
      data: {
        art_id:artID,
        type:category
      },
      success: (res) => {
        sCallback(res)
      }
    })
  }
}
export {likeModel}